import request from "@/utils/request"
import store from '../store'

export default {
    
    
    add(pojo){
        pojo.token = store.getters.token
        return request({
            url: 'http://39.106.83.184:9002/userException/add',
            data: pojo,
            method: 'post',
        })    
    },

    findByUserId(){
        return request({
            url:'http://39.106.83.184:9002/userException/findByUserId?token='+store.getters.token,
            method:'get'
        })
    },

    findById(id){
        return request({
            url:'http://39.106.83.184:9002/userException/findById?id='+id,
            method:'get'
        })
    },

    findAll(){
        return request({
            url:'http://39.106.83.184:9002/userException/findAll?token='+store.getters.token,
            method:'get'
        })
    },

    search(pojo,page,size){
        return request({
            url:'http://39.106.83.184:9002/userException/search?token='+store.getters.token+"&page="+page+"&size="+size,
            method:'post',
            data: pojo
        })
    },
}